<%--
  Created by IntelliJ IDEA.
  User: leman
  Date: 2017/7/12
  Time: 10:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<blockquote class="layui-elem-quote" style="line-height: 15px;">
    <a class="bt" href="" target="_blank" ng-click="active.nextPage('24', '应付账单管理', '内容20', 'payable')">应付账单管理</a> >
    <a class="bt" href="" target="_blank" ng-click="active.nextPage('25', '应付新建账单', '内容21', 'newBill')">应付新建账单</a> >
    应付生成账单
</blockquote>

<div  id="seaBox" ng-hide="mySea">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">账单日期</label>
            <div class="layui-input-inline">
                <input type="hidden" name="versionNo"  ng-model = "data.cost.versionNo">
                <input type="text" class="layui-input layui-disabled" placeholder="选择日期" ng-model="data.cost.comment" readonly="readonly">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">运单金额</label>
            <div class="layui-input-inline">
                <input type="text" name="sysCost" lay-verify="required|number" autocomplete="off" class="layui-input layui-disabled" ng-model = "data.cost.sysCost" readonly="readonly">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">结算金额</label>
            <div class="layui-input-inline">
                <input type="text" name="settleCost" lay-verify="required|number" autocomplete="off" class="layui-input layui-disabled" ng-model = "data.cost.settleCost" readonly="readonly">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">商品数量</label>
            <div class="layui-input-inline">
                <input type="text" name="goodsSum" lay-verify="required|number" autocomplete="off" class="layui-input layui-disabled" ng-model = "data.cost.goodsSum">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">是否开发票</label>
            <div class="layui-input-inline">
                <select class="valName"  id="invoiceStatus"  >
                    <option value="20">开票</option>
                    <option value="10">不开票</option>
                </select>
            </div>
        </div>
    </div>
    </div>
<div style="overflow-x:auto;">
    <table class="layui-table" style="min-width: 2200px;max-width: 2000px;margin-bottom: 0;">
        <tr>
            <th>序号</th>
            <th>运单号</th>
            <th>服务订单号</th>
            <th>承运人</th>
            <th>委托日期</th>
            <th>运单起运地</th>
            <th>运单目的地</th>
            <th>品牌</th>
            <th>车系</th>
            <th>车架号</th>
            <th>数量</th>
            <th>状态</th>
            <th>采购价</th>
            <th>调整金额</th>
            <th>结算价</th>
            <th>客户</th>
            <th>订单起运地</th>
            <th>订单目的地</th>
            <th>操作</th>
        </tr>
        <tr ng-repeat="x in data.list">
            <td ng-bind="$index+1"></td>
            <td ng-bind="x.id"  style="display: none"></td>
            <td ng-bind="x.waybillCode"></td>
            <td ng-bind="x.serviceOrderCode"></td>
            <td ng-bind="x.carrierName"></td>
            <td ng-bind="x.billDate.substring(0,11)"></td>
            <td ng-bind="x.wdepartProvinceName + '-' + x.wdepartCityName"></td>
            <td ng-bind="x.wreceiptProvinceName + '-' + x.wreceiptCityName"></td>
            <td ng-bind="x.brandName"></td>
            <td ng-bind="x.vehicleName"></td>
            <td ng-bind="x.vin"></td>
            <td ng-bind="x.amount"></td>
            <td ng-bind="x.status"></td>
            <td ng-bind="x.sysCost"></td>
            <td ng-click="adjustBtn()"><a ng-bind="x.alterCost==null ? '0' : x.alterCost" style="color:red;cursor:pointer;text-decoration: underline;"></a></td>
            <td ng-bind="x.settleCost"></td>
            <td ng-bind="x.customerCompanyName"></td>
            <td ng-bind="x.odepartProvinceName + '-' + x.odepartCityName"></td>
            <td ng-bind="x.oreceiptProvinceName + '-' + x.oreceiptCityName"></td>
            <td style="display: none" ng-bind="x.comment"></td>
            <td ng-click="delBtn()"> <a style="color:red;cursor:pointer;text-decoration: underline;"  >移除</a></td>
        </tr>
    </table>
</div>
<div class="layui-form-item" style="text-align: center;margin-top:16px;">
    <button class="layui-btn layui-btn-normal" ng-click="active.tabAdd('25', '应付新建账单', '内容21', 'newBill')">上一步</button>
    <button class="layui-btn" lay-submit="" ng-click="active.generateBill()" id="versionNo" value="{{data.cost.versionNo}}">生成账单</button>
</div>
<input type="hidden" id="sysCost" value="">
<input type="hidden" id="alterCost" value="">
<input type="hidden" id="settleCost" value="">
<input type="hidden" id="comment" value="">



